//package com.dotflat.satistics.vo.general;
//
//import lombok.Data;
//
//import java.util.Map;
//
//import static com.matt.foundation.function.TimeComputeFunction.TIME_NAME;
//
///**
// * *******************************
// * Created by Tim.
// * form com.matt
// * on 2018/7/23
// * *******************************
// */
//@Data
//public class LeadChannelVo {
//    private String timeName;
//    private long phoneCount = 0;
//    private long arrivalCount = 0;
//    private long internetCount = 0;
//    private long transferCount = 0;
//    private long groundPromotionCount = 0;
//    private long externalBuyCount = 0;
//    private long marketingActivityCount = 0;
//
//
//    public static LeadChannelVo of(Map map){
//        LeadChannelVo vo = new LeadChannelVo();
//        vo.setTimeName(map.get(TIME_NAME).toString());
//        vo.setPhoneCount(map.get("phoneCount") == null ? 0 : Long.valueOf(map.get("phoneCount").toString()));
//        vo.setArrivalCount(map.get("arrivalCount") == null ? 0 : Long.valueOf(map.get("arrivalCount").toString()));
//        vo.setInternetCount(map.get("internetCount") == null ? 0 : Long.valueOf(map.get("internetCount").toString()));
//        vo.setTransferCount(map.get("transferCount") == null ? 0 : Long.valueOf(map.get("transferCount").toString()));
//        vo.setGroundPromotionCount(map.get("groundPromotionCount") == null ? 0 : Long.valueOf(map.get("groundPromotionCount").toString()));
//        vo.setExternalBuyCount(map.get("externalBuyCount") == null ? 0 : Long.valueOf(map.get("externalBuyCount").toString()));
//        vo.setMarketingActivityCount(map.get("marketingActivityCount") == null ? 0 : Long.valueOf(map.get("marketingActivityCount").toString()));
//        return vo;
//    }
//}
